<script setup lang="ts">
import { ref } from 'vue'
import {Download, Setting} from "@element-plus/icons-vue";
import type { TabsPaneContext } from 'element-plus'
import SysBaseInfo from "@/views/idp/components/sysBaseInfo.vue";
import IdpSetting from "@/views/idp/components/idpSetting.vue";

const activeName = ref('baseInfo')
const idpSettingDialogRef = ref()


const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
const clickSettingBtn = ()=>{
  idpSettingDialogRef.value.dialogVisible = true
}


</script>

<template>
  <div>
    <IdpSetting ref="idpSettingDialogRef"></IdpSetting>
    <div class="flex justify-between">
      <div class="flex">常用操作</div>
      <div class="flex">
        <el-tooltip content="idp系统设备" placement="top">
          <el-button @click="clickSettingBtn" type="primary" :icon="Setting" circle />
        </el-tooltip>
      </div>
    </div>
    <div>
      <el-tabs tab-position="left" type="border-card" v-model="activeName">
        <el-tab-pane label="系统概述" name="baseInfo">
          <SysBaseInfo></SysBaseInfo>
        </el-tab-pane>
        <el-tab-pane label="资产信息" name="oaInfo">资产信息</el-tab-pane>
        <el-tab-pane label="本地策略" name="localPolice">本地策略</el-tab-pane>
        <el-tab-pane label="本地缓存" name="localCache">本地缓存</el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<style scoped lang="scss">

</style>
